package com.heima.api.admin;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * 敏感词管理接口
 */
@Api(value = "敏感词管理",tags = "敏感词管理")
public interface AdSensitiveControllerApi {
    //根据名字对敏感词分页查询
    @ApiOperation("根据名字对敏感词分页查询")
    ResponseResult sensitiveWordFindByNameAndPage(SensitiveDto dto);

    //新增敏感词
    @ApiOperation("新增敏感词")
    ResponseResult insert(AdSensitive adSensitive);

    //根据id更新敏感词
    @ApiOperation("更新敏感词")
    ResponseResult update(AdSensitive adSensitive);

    //根据id删除敏感词
    @ApiOperation("根据id删除敏感词")
    ResponseResult deleteById(@ApiParam("敏感词id") Integer id);

}
